<?php defined('IN_IA') or exit('Access Denied');?><html>
<head>
<?php  echo register_jssdk(false);?> <!-- 放到其他引入的 js 之前 -->
	<?php  $shareurl = $_W['siteroot'].$this->createMobileUrl('index',array('whoshare'=>$whoshare,'whosharecookie'=>$cookid,'themeid'=>$theme['id']));?>
	<?php  $geturl = $this->createMobileUrl('sharecallback',array('addshare'=>$addshare,'addsharecookie'=>$addsharecookie,'themeid'=>$theme['id']));?>
 <script type="text/javascript" src="../addons/wmb_goshare/template/js/WeixinApi.js" ></script>
	<script>
	wx.ready(function () {
		sharedata = {
			title: '<?php  echo $theme['themename'];?>',
			desc: '<?php  echo $theme['themetitle'];?>',
			link:  '<?php  echo $_W['siteroot'].str_replace('./','app/',$this->createMobileurl('index',array('whoshare'=>$whoshare,'whosharecookie'=>$cookid,'themeid'=>$theme['id'])))?>',
			imgUrl: '<?php  echo toimage($theme['sharepic'])?>',
			success: function(){ 
				 $.ajax({
                    url: '<?php  echo $this->createMobileUrl('record',array('themeid'=>$theme['id'],'openid'=>$_W ['fans'] ['from_user']))?>',
                    type: 'post',
					success: function (data) {

						 $('#divBTJ').show();
						 
                    }
                });
			},
			cancel: function(){
				//alert('cancel');
			}
		};
    wx.config({
      debug: false,
      appId: '<?php  echo $signPackage["appId"];?>',
      timestamp: '<?php  echo $signPackage["timestamp"];?>',
      nonceStr: '<?php  echo $signPackage["nonceStr"];?>',
      signature: '<?php  echo $signPackage["signature"];?>',
      
  });
    wx.hideAllNonBaseMenuItem({
      success: function () {
			   // alert('已隐藏所有非基本菜单项');
				 wx.showMenuItems({
			  menuList: [
				'menuItem:exposeArticle',
				'menuItem:share:appMessage',
				'menuItem:readMode', // 阅读模式
				'menuItem:share:timeline', // 分享到朋友圈
				'menuItem:copyUrl', // 复制链接
				'menuItem:favorite', // 复制链接
			  ],
			  success: function (res) {
			   // alert('已显示“阅读模式”，“分享到朋友圈”，“复制链接”等按钮');
			  },
			  fail: function (res) {
				alert(JSON.stringify(res));
			  }
			 });
       }
    });
  
     
			//wx.hideAllNonBaseMenuItem();
			// wx.showAllNonBaseMenuItem();
		wx.onMenuShareAppMessage(sharedata);
		wx.onMenuShareTimeline(sharedata);
		wx.onMenuShareQQ(sharedata);
		wx.onMenuShareWeibo(sharedata);
	});
	</script>


<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title><?php  echo $theme['headtitle'];?></title>
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
<meta name="author" content="Joel">
<meta name="keywords" content="<?php  echo $theme['headtitle'];?>">
<meta name="description" content="<?php  echo $theme['headtitle'];?>">
<!--viewport 等比 不缩放-->
<meta http-equiv="cleartype" content="on">
<meta name="apple-mobile-web-app-capable" content="yes">
<!--页面不缓存-->
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--Wap前端重置样式与字体样式-->
<link href="http://auto.yatoulu.com/Content/active.css" rel="stylesheet">
<link rel="stylesheet" type="text/css"
	href="../addons/wmb_goshare/template/css/Joel-basewap.css">
<link rel="stylesheet" type="text/css"
	href="../addons/wmb_goshare/template/css/iconfont.css">
<!--Wap前端GMU样式-->
<link rel="stylesheet" type="text/css"
	href="../addons/wmb_goshare/template/css/gmu.css">
<!--Wap前端GMU重置样式-->
<link rel="stylesheet" type="text/css"
	href="../addons/wmb_goshare/template/css/Joel-basegmu.css">
<!--Wap前端Zepto函数库1.0-->
<script type="text/javascript" charset="utf-8"
	src="../addons/wmb_goshare/template/js/zepto.min.js"></script>
<!--Wap前端Joel公共封装函数库-针对ZEPTO-->
<script type="text/javascript" charset="utf-8"
	src="../addons/wmb_goshare/template/js/Joel-basewap.js"></script>
<!--Wap前端Joel-Gmu公共函数库-->
<script type="text/javascript" charset="utf-8"
	src="../addons/wmb_goshare/template/js/gmu.min.js"></script>


<style>
.gmu-media-detect {
	-moz-transition: width 0.001ms;
	width: 0;
	position: absolute;
	clip: rect(1px, 1px, 1px, 1px);
}

@media screen and (width: 1920px) {
	#gmu-media-detect0 {
		width: 1px;
	}
}
</style>
<!--Wap前端Joel-Gmu公共函数库-针对Gmu-->
<script type="text/javascript" charset="utf-8"
	src="../addons/wmb_goshare/template/js/Joel-basegmu.js"></script>
<style>
#J-loading {
	width: 100%;
	height: 100%;
	background: #FFFFFF;
	z-index: 999999;
	position: absolute;
	top: 0px;
	left: 0px;
	display: block;
	min-height: 100%
}

#J-loading p {
	width: 100%;
	height: 2em;
	line-height: 2em;
	font-size: 1.2em;
	font-weight: border;
	position: relative;
	top: 40%;
	color: #333;
	text-align: center
}

body {
	background: none;
	color:;
	#333
}

h1 {
	font-size: 1.2em;
	line-height: 1.5em;
}

.pd10 {
	padding: 10px;
}

.jfx-line {
	border-bottom: solid 1px #d9d8dc;
	height: 10px;
	margin-bottom: 10px;
	line-height: 10px;
}

.jfx-gre {
	background-position: 10px 40px;
	background-repeat: no-repeat;
	background-position: 10px 10px;
	background-size: 40px 40px;
	width: 100%;
	height: 60px;
	background-color: #EBEBEB;
	border-bottom: solid 1px #D9D8DC;
	display: block;
}

.jfx-gre-ct {
	padding: 10px 10px 0px 60px;
}

.jfx-gre .tt {
	font-weight: bold;
	line-height: 1.5em;
}

.jfx-gre-img1 {
	background-image: url('../addons/wmb_goshare/template/images/1.png');
}

.jfx-gre-img2 {
	background-image: url('../addons/wmb_goshare/template/images/2.png');
}

.jfx-gre-img3 {
	background-image: url('../addons/wmb_goshare/template/images/3.gif');
}

.jfx-gre em.dt {
	color: #909090;
	font-size: 12px;
	font-stretch: normal;
}

.jfx-down-tt {
	background-image:
		url('../addons/wmb_goshare/template/images/down.png');
	background-repeat: no-repeat;
	background-position: center right;
	background-size: 19px 19px;
	line-height: 38px;
	height: 38px;
}

a.report,a.report:visited {
	color: #B0B0B0;
	text-decoration: underline;
	font-size: 12px;
}

.jfx-downtab-down {
	display: none;
	border: solid 1px #D9D8DC;
	border-top: none;
	background-color: #FFF6E5;
}

.jfx-bb {
	font-size: 1.2em;
	line-height: 1.5em;
}

.jfx-jp-num {
	font-weight: bold;
	font-size: 20px;
	margin-right: 10px;
}

a.jfx-tel,a.jfx-tel:visited {
	padding: 5px 12px;
	background: #F0F0F0;
	border-radius: 4px;
	border: solid 1px #D7D7D8;
	color: #474747;
}

.share_timeline_button {
	display: inline-block;
	letter-spacing: 0;
	font-size: 20px;
	padding: 5px 0 0 45px;
	height: 35px;
	background: url(../addons/wmb_goshare/template/images/share.png)
		no-repeat 15px 7px;
	background-size: 24px 24px;
	margin: 0;
	font-weight: bold;
}

.share_timeline {
	border-radius: 4px;
	border: 0;
	height: 50px;
	color: #ffffff;
	text-align: center;
	background: #5ea831;
	width: 100%;
}
/*奖品列表*/
.visitor {
	margin-top: 20px;
	margin-bottom: 20px;
	border-radius: 4px;
	background-color: #F8F8F8;
	padding: 10px;
	border: solid 1px #D9D8DC;
}

.v-share {
	border-bottom: solid 1px #EEEEEE;
	text-align: center;
	font-size: 16px;
}

.v-share-count {
	font-weight: bold;
	font-size: 30px;
	color: #347F0C;
	margin: 0 10px;
}

.v-share-icon {
	padding-top: 5px;
	border-bottom: solid 1px #EEEEEE;
}

.v-share-icon-container {
	margin-left: -5px;
}

.v-share-light-gray {
	width: 22px;
	height: 22px;
	display: inline-block;
	background: url(../addons/wmb_goshare/template/images/share-gray.png)
		no-repeat;
	background-size: 22px 22px;
	margin: 5px 0 5px 5px;
}

.v-share-light-color {
	width: 22px;
	height: 22px;
	display: inline-block;
	background:
		url(../addons/wmb_goshare/template/images/share-color.png)
		no-repeat;
	background-size: 22px 22px;
	margin: 5px 0 5px 5px;
}

.v-share-surplus {
	border-bottom: solid 1px #EEEEEE;
	padding: 10px 0;
	font-size: 14px;
}

.visitor_over_time {
	font-weight: bold;
	color: red;
	font-size: 20px;
	margin: 0 2px;
}

ul.v-prize li {
	border: solid 1px #EEEEEE;
	border-radius: 2px;
	margin-bottom: 10px;
	font-size: 16px;
	background: #F2F2F2;
	padding: 10px;
}

.v-prize-get-enable {
	width: 100%;
	display: block;
	line-height: 46px;
	font-size: 20px;
	border-radius: 4px;
	color: #fff;
	letter-spacing: 4px;
	background: #ff6046; /* Old browsers */
	background: -moz-linear-gradient(top, #ff6046 0, #e84c32 63%, #d5462e 96%);
	/* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #ff6046),
		color-stop(63%, #e84c32), color-stop(96%, #d5462e));
	/* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top, #ff6046 0, #e84c32 63%, #d5462e 96%);
	/* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top, #ff6046 0, #e84c32 63%, #d5462e 96%);
	/* Opera 11.10+ */
	background: -ms-linear-gradient(top, #ff6046 0, #e84c32 63%, #d5462e 96%);
	/* IE10+ */
	background: linear-gradient(to bottom, #ff6046 0, #e84c32 63%, #d5462e 96%);
	/* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient(              startColorstr='#ff6046',
		endColorstr='#d5462e', GradientType=0); /* IE6-9 */
	border: 0;
}

#jplist {
	display: none;
}

.J-foot {
	text-align: center;
}

.J-content img {
	width: 100%
}
/*表单样式*/
.J-k {
	border-radius: 10px;
}

.J-k-tt span {
	padding: 0px 20px;
	height: 2em;
	line-height: 2em;
	color: #FFFFFF;
	background: #DA5431;
	display: block;
	border-radius: 10px 10px 0px 0px;
}

.J-k-ct {
	padding: 10px;
	border: 1px dashed #BDA46E;
	border-top: none
}

.J-fm li {
	line-height: 2em;
	height: 2em;
	padding-bottom: 5px;
	margin-bottom: 5px;
	width: 100%;
	color: #DA5431;
}

.J-fm li span {
	width: 20%;
	text-align: center;
	display: block;
	float: left;
}

.J-fm li input {
	display: block;
	float: left;
	background: none;
	border: none;
	border-bottom: 1px solid #BDA46E;
	width: 80%;
	line-height: 2em;
	height: 2em;
	box-shadow: none;
	outline: none;
}

.J-fm li select {
	display: block;
	float: left;
	background: none;
	border: none;
	border-bottom: 1px solid #BDA46E;
	width: 80%;
	line-height: 2em;
	height: 2em;
	box-shadow: none;
	outline: none;
}
/*全屏幕按钮*/
button.J-btn {
	width: 100%;
	background: #DA5431;
	color: #FFFFFF;
	text-align: center;
	line-height: 2em;
	height: 2em;
	font-size: 1.2em;
	box-shadow: none;
	border: none;
	border-radius: 10px;
}

button.J-btn50 {
	width: 45%;
	background: #DA5431;
	color: #FFFFFF;
	text-align: center;
	line-height: 2em;
	height: 2em;
	font-size: 1.2em;
	box-shadow: none;
	border: none;
	border-radius: 10px;
}

a.J-btn,a.J-btn:visited {
	display: block;
	width: 100%;
	background: #DA5431;
	color: #FFFFFF;
	text-align: center;
	line-height: 2em;
	height: 2em;
	font-size: 1.2em;
	box-shadow: none;
	border: none;
	border-radius: 10px;
}

a.J-btn50,a.J-btn50:visited {
	display: block;
	width: 45%;
	background: #DA5431;
	color: #FFFFFF;
	text-align: center;
	line-height: 2em;
	height: 2em;
	font-size: 1.2em;
	box-shadow: none;
	border: none;
	border-radius: 10px;
}
.publicity-expand{
	border-bottom: none;
	background-color: transparent;
}
.act_rule_phone {
background: linear-gradient(to bottom, #ffffff 0px, #fafafa 6%, #efefef 50%, #e1e1e1 100%) repeat scroll 0 0 rgba(0, 0, 0, 0);
border: 1px solid #d7d7d8;
border-radius: 4px;
color: #474747;
padding: 5px 0;
margin-left: 10px;
height: 28px;
line-height: 28px;
margin-top: 3px;
padding-left: 10px;
padding-right: 10px;
position: relative;
text-decoration: none;
}
</style>

</head>
<body style="">
	<div style="display: none;" id="J-loading">
		<p>努力加载中...</p>
	</div>
	<div id="J-wrap">

		<div id="Joel-wrap-main">

			<div class="pd2">
				<h1><?php  echo $showtitle;?></h1>
				<p class="blank">&nbsp;</p>
				<div class="J-toppic">
					<?php  if($sturt) { ?><img src="<?php  echo toimage($theme['themelogo'])?>" width="100%" /><?php  } else { ?><img src="<?php  echo $this->geturl(1);?>" width="100%" /><?php  } ?>	
				</div>
				<p class="blank">&nbsp;</p>
				<div class="jfx-gre jfx-gre-img1">
					<div class="jfx-gre-ct" style="overflow: hidden;">
						<p class="tt"><?php  echo $theme['undertaker'];?></p>
						<div style="margin-top: 5px;">
							<em class="dt fl"><?php  echo $begintime;?></em>
							
						</div>
						<a style="float: right;margin-top: -13px;font-size: 14px;color:#5F5B5B;font-weight: bold;" href="<?php  echo $this->createMobileUrl('jubao')?>">举报</a>
					</div>
				</div>
				<div class="jfx-gre jfx-gre-img2 jfx-downtab">
					<div class="jfx-gre-ct">
						<div class="jfx-down-tt">
							<p class="tt" style="line-height: 38px;">活动规则公示</p>
						</div>
					</div>
				</div>

				<div style="display: none;" class="jfx-downtab-down">
					<div class="pd10">
						<p>
							<b class="jfx-bb">活动规则</b>
						</p>
						<div>
							<p></p>
							<ul class="publicity-expand list-paddingleft-2"
								style="box-sizing: border-box; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: rgb(217, 216, 220); padding: 10px; position: relative; color: rgb(51, 51, 51); font-family: 微软雅黑, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; white-space: normal; background-color: rgb(255, 246, 229);">
								<li><p>奖品设置</p></li> <?php  if(is_array($giftlist)) { foreach($giftlist as $item) { ?>
								<li><p><?php  echo $item['sort'];?>.
										集满<?php  echo $item['needscore'];?>个分享，送<?php  echo $item['stdname'];?><?php  if(!empty($item['desc'])) { ?>(<?php  echo $item['desc'];?>)<?php  } ?>一<?php  echo $item['unit'];?>（共<?php  echo $item['amount'];?><?php  echo $item['unit'];?>）。</p></li>
								<?php  } } ?>
								<li><p>活动时间</p></li>
								<li><p><?php  echo $begintime;?> — <?php  echo $endtime;?></p></li>
								<!-- <li><p>兑奖方法</p></li>
								<li><p><?php  echo $theme['place'];?></p></li> -->
								<li><p>咨询电话</p></li>
								<li><p>
										<?php  echo $theme['tel'];?><a class="act_rule_phone" href="tel:<?php  echo $theme['tel'];?>"><span class="act_rule_phone_img"></span>直接拨打</a>
									</p></li>
							</ul>
							<p></p>
						</div>
						<p class="jfx-line">&nbsp;</p>
					</div>
				</div>
			<div class="jfx-gre jfx-gre-img3 jfx-downtab">
					<div class="jfx-gre-ct">
						<div class="jfx-down-tt">
							<p class="tt" style="line-height: 38px;">如何集分享</p>
						</div>
					</div>
					
				</div>

				<div style="display: none;" class="jfx-downtab-down">
					<div class="pd10">
						<p></p>
						<p>
							<span
								style="font-size: 12px; font-family: 微软雅黑, 'Microsoft YaHei';"></span>
						</p>
						<fieldset
							style="text-align: -webkit-auto; white-space: normal; padding: 5px 12px; margin: 0px; border: 1px solid rgb(118, 146, 60); color: rgb(51, 51, 51); font-family: 微软雅黑, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; max-width: 100%; orphans: 2; widows: 2; border-top-left-radius: 1em; border-top-right-radius: 1em; border-bottom-right-radius: 1em; border-bottom-left-radius: 1em; box-sizing: border-box !important; word-wrap: break-word !important; background-color: rgb(244, 249, 243);">
							<legend
								style="padding: 0px; border-width: 0px 0px 1px; border-bottom-style: solid; border-bottom-color: rgb(229, 229, 229); width: inherit; margin: 0px; font-size: 21px; line-height: inherit; max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;">
								<span
									style="max-width: 100%; margin: 0px; padding: 0px; font-family: arial, helvetica, sans-serif; font-size: 14px; box-sizing: border-box !important; word-wrap: break-word !important;"><strong
									style="max-width: 100%; box-sizing: border-box !important; word-wrap: break-word !important;"><span
										style="max-width: 100%; margin: 0px; padding: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; color: rgb(255, 251, 240); box-sizing: border-box !important; word-wrap: break-word !important; background-color: rgb(118, 146, 60);">参与方式</span></strong></span>
							</legend>
							<p>	<ul class="publicity-expand">
								   <li class="clearfix"><div class="publicity-right publicity-pic-1"><span class="publicity-num">1.</span>累集分享个数</div></li>
									<li class="clearfix"><div class="publicity-left publicity-pic-2"><span class="publicity-num">2.</span>选择奖品</div></li>
									<li class="clearfix"><div class="publicity-right publicity-pic-3"><span class="publicity-num">3.</span>获得兑奖码</div></li>
							   </ul></p>
						</fieldset>
						<p></p>
					</div>
				</div>
				<p class="blank">&nbsp;</p>
				<p class="blank">&nbsp;</p>
				
				
			<div class="act">
                <p><strong style="color: rgb(0, 112, 192); font-family: 微软雅黑; line-height: 28px; text-align: justify; white-space: normal; max-width: 100%; word-wrap: break-word !important; box-sizing: border-box !important;"><span style="background-color: rgb(0, 112, 192); color: rgb(255, 255, 255); margin-right: 8px; max-width: 100%; padding: 4px 10px; word-wrap: break-word !important; box-sizing: border-box !important;">1</span></strong><strong style="color: rgb(0, 112, 192); font-family: 微软雅黑; text-align: justify; white-space: normal; max-width: 100%; line-height: 24px; word-wrap: break-word !important; box-sizing: border-box !important;">参与方式</strong></p>
				<p style="white-space: normal; line-height: 24px;"><span style="color: rgb(0, 0, 0); font-size: 12px;">1. 分享本页到微信朋友圈</span></p>
				<p style="white-space: normal; line-height: 24px;"><span style="color: rgb(0, 0, 0); font-size: 12px;">2. 页面被自己朋友圈的好友分享后，好友便可以帮您集一次，计数+1</span></p>
				<p style="white-space: normal; line-height: 24px;"><span style="color: rgb(0, 0, 0); font-size: 12px;">3. 满足活动集分享数，兑奖获取兑奖码</span></p>
				<p style="white-space: normal; line-height: 24px;"><span style="color: rgb(0, 0, 0); font-size: 12px;">4. 凭兑奖码根据要求的兑奖方式换取相应奖品</span></p>
				<p><strong style="color: rgb(0, 112, 192); font-family: 微软雅黑; text-align: justify; white-space: normal; max-width: 100%; line-height: 24px; word-wrap: break-word !important; box-sizing: border-box !important;"><strong style="color: rgb(0, 112, 192); font-family: 微软雅黑; line-height: 28px; text-align: justify; white-space: normal; max-width: 100%; word-wrap: break-word !important; box-sizing: border-box !important;"><span style="background-color: rgb(0, 112, 192); color: rgb(255, 255, 255); margin-right: 8px; max-width: 100%; padding: 4px 10px; word-wrap: break-word !important; box-sizing: border-box !important;">2</span></strong><strong style="color: rgb(0, 112, 192); font-family: 微软雅黑; text-align: justify; white-space: normal; max-width: 100%; line-height: 24px; word-wrap: break-word !important; box-sizing: border-box !important;">奖品设置</strong></strong><br></p>
				<?php  if(is_array($giftlist)) { foreach($giftlist as $item) { ?>
						<p style="white-space: normal; line-height: 24px;">
							<span style="color: rgb(0, 0, 0); font-size: 12px;"><?php  echo $item['sort'];?>. 集满
								<?php  echo $item['needscore'];?>个分享，送<?php  echo $item['stdname'];?> <?php  if(!empty($item['desc'])) { ?>(<?php  echo $item['desc'];?>)<?php  } ?>一<?php  echo $item['unit'];?>（共<?php  echo $item['amount'];?><?php  echo $item['unit'];?>）。</span>
						</p>
						<?php  } } ?>
				<h2 style="white-space: normal; max-width: 100%; font-family: 微软雅黑; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(227, 227, 227); font-size: 16px; height: 32px; line-height: 18px; margin: 8px 0px 5px; padding: 0px; text-align: justify; word-wrap: break-word !important; box-sizing: border-box !important;"><span style="max-width: 100%; border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: rgb(0, 112, 192); color: rgb(0, 112, 192); float: left; line-height: 28px; padding: 0px 2px 3px; word-wrap: break-word !important; box-sizing: border-box !important;"><strong style="max-width: 100%; word-wrap: break-word !important; box-sizing: border-box !important;"><span style="background-color: rgb(0, 112, 192); color: rgb(255, 255, 255); margin-right: 8px; max-width: 100%; padding: 4px 10px; word-wrap: break-word !important; box-sizing: border-box !important;">3</span></strong><strong style="max-width: 100%; line-height: 24px; word-wrap: break-word !important; box-sizing: border-box !important;">活动说明</strong></span></h2>
				<p style="white-space: normal; line-height: 24px;"><span style="color: rgb(0, 0, 0); font-size: 12px;">1.活动时间：<span style="font-family: 微软雅黑, &#39;Microsoft YaHei&#39;; font-size: 12px; line-height: 24px;"><?php  echo $begintime;?> — <?php  echo $endtime;?></span></span></p>
				<p style="white-space: normal; line-height: 24px;"><span style="color: rgb(0, 0, 0); font-size: 12px;">2.兑奖方式：凭获得的兑奖码和身份证直接到店兑换奖品。</span></p>
				<p style="white-space: normal; line-height: 24px;"><span style="color: rgb(0, 0, 0); font-size: 12px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;联系电话：<a href="tel:<?php  echo $theme['tel'];?>" target="_self"><?php  echo $theme['tel'];?></a><br></span></p>
				<p style="white-space: normal; line-height: 24px;"><span style="color: rgb(0, 0, 0); font-size: 12px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;地址：<a href="" target="_self"><?php  echo $theme['place'];?></a></span></p>
				<p style="white-space: normal; line-height: 24px;"><span style="color: rgb(0, 0, 0); font-size: 12px;">3.兑奖码只在活动期间有效，过期作废</span></p>
				<?php  if(!empty($theme['ad1'])) { ?><p><strong style="color: rgb(0, 112, 192); font-family: 微软雅黑; text-align: justify; white-space: normal; max-width: 100%; line-height: 24px; word-wrap: break-word !important; box-sizing: border-box !important;"><strong style="color: rgb(0, 112, 192); font-family: 微软雅黑; line-height: 28px; text-align: justify; white-space: normal; max-width: 100%; word-wrap: break-word !important; box-sizing: border-box !important;"><span style="background-color: rgb(0, 112, 192); color: rgb(255, 255, 255); margin-right: 8px; max-width: 100%; padding: 4px 10px; word-wrap: break-word !important; box-sizing: border-box !important;"><?php  echo $theme['ad1'];?></span></strong></strong><br></p>
				<?php  if(is_array($conten1)) { foreach($conten1 as $item) { ?>
						<p style="white-space: normal; line-height: 24px;">
							<span style="color: rgb(0, 0, 0); font-size: 12px;">&nbsp;&nbsp;<?php  echo htmlspecialchars_decode($item);?></span><br>
						</p>
				<?php  } } ?>
				<?php  } ?>
				<?php  if(!empty($theme['ad2'])) { ?><p><strong style="color: rgb(0, 112, 192); font-family: 微软雅黑; text-align: justify; white-space: normal; max-width: 100%; line-height: 24px; word-wrap: break-word !important; box-sizing: border-box !important;"><strong style="color: rgb(0, 112, 192); font-family: 微软雅黑; line-height: 28px; text-align: justify; white-space: normal; max-width: 100%; word-wrap: break-word !important; box-sizing: border-box !important;"><span style="background-color: rgb(0, 112, 192); color: rgb(255, 255, 255); margin-right: 8px; max-width: 100%; padding: 4px 10px; word-wrap: break-word !important; box-sizing: border-box !important;"><?php  echo $theme['ad2'];?></span></strong></strong><br></p>
				<?php  if(is_array($conten2)) { foreach($conten2 as $item) { ?>
						<p style="white-space: normal; line-height: 24px;">
							<span style="color: rgb(0, 0, 0); font-size: 12px;">&nbsp;&nbsp;<?php  echo htmlspecialchars_decode($item);?></span><br>
						</p>
				<?php  } } ?>
				<?php  } ?>
				<?php  if(!empty($theme['ad3'])) { ?><p><strong style="color: rgb(0, 112, 192); font-family: 微软雅黑; text-align: justify; white-space: normal; max-width: 100%; line-height: 24px; word-wrap: break-word !important; box-sizing: border-box !important;"><strong style="color: rgb(0, 112, 192); font-family: 微软雅黑; line-height: 28px; text-align: justify; white-space: normal; max-width: 100%; word-wrap: break-word !important; box-sizing: border-box !important;"><span style="background-color: rgb(0, 112, 192); color: rgb(255, 255, 255); margin-right: 8px; max-width: 100%; padding: 4px 10px; word-wrap: break-word !important; box-sizing: border-box !important;"><?php  echo $theme['ad3'];?></span></strong></strong><br></p>
				<?php  if(is_array($conten3)) { foreach($conten3 as $item) { ?>
						<p style="white-space: normal; line-height: 24px;">
							<span style="color: rgb(0, 0, 0); font-size: 12px;">&nbsp;&nbsp;<?php  echo htmlspecialchars_decode($item);?></span><br>
						</p>
				<?php  } } ?>
				<p><strong style="color: rgb(0, 112, 192); font-family: 微软雅黑; text-align: justify; white-space: normal; max-width: 100%; line-height: 24px; word-wrap: break-word !important; box-sizing: border-box !important;"><img src="<?php  echo toimage($theme['ad3pic'])?>" title="<?php  echo $theme['stdcode'];?>" alt="" width="100%"></strong></p><p><strong style="color: rgb(0, 112, 192); font-family: 微软雅黑; text-align: justify; white-space: normal; max-width: 100%; line-height: 24px; word-wrap: break-word !important; box-sizing: border-box !important;"></strong></p>
				<?php  } ?>
				
	      </div>
				
				
		<?php  if($pwd==2){?>	
			<div id="divBTJ">
			   <div style="height: 60px; background: #000; -ms-opacity: .5; opacity: .5; position: fixed; bottom: 0; padding: 10px; left: 0; width: 100%; z-index: 1000;"></div>
			   <button class="share_timeline btn-block" style="-ms-opacity: 1; opacity: 1;position:fixed;bottom: 10px;width: 90%;left: 5%;z-index: 1000;" id="btnBtj" data-repeat="@hasRepeat" data-loading-text="正在提交..."><span>帮TA集一个</span>
			   </button>
			   <style type="text/css">body {padding-bottom: 60px; }</style>
		    </div>
	     <?php  } ?>
				
				
				<!--预约开始-->
				<form action="" method="post">
					<input name="shopid" value="4" type="hidden"> 
					<input name="imgid" value="9" type="hidden"> 
					<input name="vipid" value="" type="hidden">
					<i class="iconfont">
						<p class="blank">&nbsp;</p>
						<p class="blank">&nbsp;</p>
						<div class="clear"></div> <!-- 分享提示向导-->
						<div id="timelineGuid" onclick="this.style.display='none'"
							style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 2000; display: none;">
							<img src="../addons/wmb_goshare/template/images/guide.png"
								style="position: fixed; right: 18px; top: 5px; width: 260px; height: 180px; z-index: 2001;">
						</div>
						<button class="share_timeline btn-block" id="btnShare" type="">
							<span class="share_timeline_button"
								onclick="document.getElementById('timelineGuid').style.display='block';return false;">点击右上角分享到朋友圈</span>
						</button> <!--集分享开始-->  
						<div class="visitor" id="divVisitor">
							<div class="v-share">
								该用户已集<span  id="count" class="v-share-count"><?php  echo $member['score'];?></span>个
							</div>
							<div class="v-share-icon">
								<div class="v-share-icon-container">
								<?php  
								  for($i==0;$i < $showflower;$i++){
									echo '<span class="v-share-light-color"></span>';
									}
								
								?>	
								</div>
							</div>
							<div class="v-share-surplus">
								活动剩余时间：<span class="visitor_over_time"><?php  echo $leftdays;?></span> 天 <span class="visitor_over_time"><?php  echo $lefthour;?></span> 小时 <span class="visitor_over_time"><?php  echo $leftmm;?></span> 分钟
							</div>
							<p class="blank">&nbsp;</p>
							<div class="v-prize-get">
								<span class="v-prize-get-tip">点击兑换礼品：</span>
							</div>
							<p class="blank">&nbsp;</p>
							<ul class="v-prize">
								<?php  if(is_array($giftlist)) { foreach($giftlist as $item) { ?>
								<li data-jpid="<?php  echo $item['id'];?>" data-jpfx="<?php  echo $item['needscore'];?>" data-nowjf="<?php  echo $member['score'];?>" 
									data-jpname="<?php  echo $item['stdname'];?>" data-imgid="<?php  echo $member['score'];?>" class="zjstart"><span
									class="fr">剩余<?php  echo $item['left'];?>份</span><?php  echo $item['stdname'];?>
									<div class="clear"></div></li> <?php  } } ?>
							</ul>
						</div>
						<button type="button" class="v-prize-get-enable" id="myjp">我的奖品</button>
						<div class="visitor" id="jplist">
							<div class="v-prize-get">
								<span class="v-prize-get-tip">我的奖品：</span>
							</div>
							<p class="blank">&nbsp;</p>
							<ul class="v-prize">
								<li><span class="fr">兑换码</span>奖品名称<div class="clear"></div></li>
								<?php  if(is_array($memgiftlist)) { foreach($memgiftlist as $item) { ?>
								<li ><span class="fr" style="font-size: 12px;"><?php  echo $item['code'];?></span><?php  echo $item['giftname'];?><div class="clear"></div></li>
								<?php  } } ?>
							</ul>
						</div>
						<p class="blank">&nbsp;</p>
						<p class="blank">&nbsp;</p> <!--正文结束-->
					</i>
				</form>
			</div>
			<i class="iconfont"> </i>
		</div>
		    <style>
				.alBox{
					display: none;
					background-color: rgba(0,0,0,0.5);
					position: fixed;
					left: 0;
					top: 0;
					
				}
				.alBox #al1{
					display: inline-block;
					margin: 10px;
					background-color: white;
					-webkit-border-radius: 2px;
					border-radius: 2px;
					overflow: hidden;
					-webkit-box-shadow: 0 0 5px 0 rgba(0,0,0,0.8);
				}
				.alBox #al1 p:first-child{
					background-color: #c70e14;
					color: white;
					padding: 10px;
				}
				.alBox #al1 p:nth-child(2){
					padding: 15px;
					word-break: break-all;
					border-bottom: 1px solid #ccc;
				}
				.alBox #al1 input{
					-webkit-appearance: none;
					border: 1px solid #ccc;
					width: 160px;
					display: block;
					margin: 10px auto;
					height: 30px;
					background-color: rgba(204, 204, 204, 0.4);
					border-radius: 4px;
					-webkit-border-radius: 4px;
					outline: medium;
				}
			</style>
	
		<i class="iconfont"> <!--底部开始-->
			<div class="J-foot">
				<p></p>

				<p style="text-align: center;">
					<a href ="<?php  echo toimage($theme['url'])?>"><img
						src="<?php  echo toimage($theme['footpic'])?>" title="商家联系信息" style="width: 109px; height: 21px;"></a>
				</p>
				<p></p>
			</div>
			 <!--底部结束-->
		</i>
	</div>
	<?php  $geturl = $this->createMobileUrl('convert',array('themeid'=>$theme['id']));?>
	<i class="iconfont"> 
	<script>
	
            $('#btnBtj').bind('click', function () {
               // var $button = $(this).button('loading');
                var self = this;
                $.ajax({
                    url: '<?php  echo $this->createMobileUrl('add',array('themeid'=>$theme['id'],'openid'=>$who))?>',
                    type: 'post',
                    success: function (data) {
					     //var mes=data;
						 var mes;
						 var data = eval('('+data+')');
						 $.each(data,function(i,value){
							//console.log(data['score']);				
							$('#count').html(data['score']);
							mes = data['message'];
						 })
						 alert(mes);
					     
						 $('#divBTJ').hide();
						 
                    },
                    error: function () {
                        $button.button('reset');
                    }
                });
            });


	</script>
	
	
	<script>

	//中奖特效
	var pwd = <?php  echo $pwd;?>;
	
		var jps = $('.zjstart');
			$(jps).on('click', function() {
				var jpid = $(this).data('jpid');
				var jpname = $(this).data('jpname');
				var jpfx = $(this).data('jpfx');
				var imgid = $(this).data('imgid');
				var nowjf = $(this).data('data-nowjf');
				var msg = '您确认使用' + jpfx + '个分享来兑换[' + jpname + ']吗？';
				if(pwd == 1){
				if(Number(jpfx) > imgid){
					var msg2 = '您的积分还不够哦，关注公众号转发朋友圈让小伙伴帮你赚积分吧';
					alert(msg2);
				}else{
			//	alert('<?php  echo $geturl?>');
					var okfun = function() {
						this.destroy();
						window.location.href = '<?php  echo $geturl?>'+'&giftid='+jpid;
					}
					
					Joel_gmuAlert('确认?', msg, false, okfun);
				}}else{
						var msg2 = '关注公众号转发朋友圈让小伙伴帮你赚积分吧';
						alert(msg2);
					}
			});
	
	 
	</script>
	
	
	
	<script>

		//页面加载完后执行
		Zepto(function($) {
	
		$('.alBox').css({width:$(window).width(),height:$(window).height()})
			$('#close').click(function(){
				$('.alBox').hide();
			})
		
			//适配屏幕宽度		 
			var rewidth = $('#J-wrap').width();
			var reheight = $(window).height();

			//下拉tab
			var downtab = $('.jfx-downtab');
			var downtabct = $('jfx-downtab-ct');
			$(downtab).on('click', function() {
				$(this).next().toggle();
			});
			//我的奖品
			$('#myjp').on('click', function() {
				$('#jplist').toggle();
			});
			
			

			$("#J-loading").hide();
		});
	</script> <!-- 分享送积分开始 --> 
	


<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>




	</i>
	<div class="gmu-media-detect" id="gmu-media-detect0"></div>
</body>
</html>